home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
eofbof
/
eofbof.txt
< prev
next >
Wrap
Text File
|
1994-06-03
|
512b
|
14 lines
This sample demonstrates ways to prevent "No Current Record" from occuring.
EOFBOF shines when you use add some records, MoveFirst, and then try a
MovePrevious. The code used prevents you from moving off the end of the
database. The same thing works for MoveLast and MovePrevious.
Try disabling the code that tests for EOF/BOF in the cmdMove_Click() function
and see what happens.
Enjoy!
Don Willits
Coming soon -- a help file which will explain a bit more of the method
behind the madness.